from django.shortcuts import render
from .froms import NameForm
from django.http import HttpResponseRedirect

# Create your views here.
def get_goods(request):
    if request.method=='GET':
        form=NameForm()
        return  render(request,'test.html',{'form':form})
    else:
        form=NameForm(request.POST)
        if form.is_valid():
            return HttpResponseRedirect('/thanks')
